package com.edu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/*
 * @Author:princess
 * @Date 2023/11/30 11 30 8:59
 *
 */
@Controller
public class TestController {
    @RequestMapping("/mytest01")
    public String test01(){
        System.out.println("本来要执行的业务方法");
        System.out.println(1/0);
        return "index.jsp";
    }

    @RequestMapping("/mytest02")
    public String test02(){
        System.out.println("本来要执行的业务方法");
        return "error.jsp";
    }

    @RequestMapping("/mytest03")
    public String test03(){
        System.out.println("本来要执行的业务方法");
        return "hello world";
    }
}
